package lesson2.api.helpers;

import lesson2.api.ApplicationManager;

public class NavigationHelper
{
	private final ApplicationManager app;

	public NavigationHelper(ApplicationManager p_app)
	{
		app = p_app;
	}

	public void openIndexPage()
	{
		// Open the index page
		openPage("/");
	}

	public void openRegistrationPage()
	{
		// Open the registration page
		openPage("/account/register");
	}

	public void openPage(String p_page)
	{
		// Open a page
		app.driver.get(app.siteUrl + p_page);
	}

}
